package com.qire.manhua.dal.dao;

import com.qire.common.dal.dao.IDao;
import com.qire.manhua.model.po.ComicDownloadRecord;

import java.util.List;

import androidx.room.Dao;
import androidx.room.Query;

@Dao
public interface ComicDownloadDao extends IDao<ComicDownloadRecord> {

    @Query("SELECT * FROM ComicDownloadRecord")
    List<ComicDownloadRecord> queryAll();

    @Query("SELECT * FROM ComicDownloadRecord WHERE id = :comicId")
    List<ComicDownloadRecord> queryListBy(int comicId);

}